package com.jbm.jbmsupplier.activity.address.view;

import com.jbm.jbmsupplier.R;
import com.jbm.jbmsupplier.activity.AllActivityApp;
import com.squareup.picasso.Picasso;

import butterknife.ButterKnife;
import butterknife.InjectView;
import uk.co.senab.photoview.PhotoView;

/**
 * Created by 李征 on 2017/6/1.
 */

public class ShowImageViews extends AllActivityApp {
    @InjectView(R.id.photoview)
    PhotoView photoview;

    @Override
    public int setContentView() {
        return R.layout.popuimage;
    }

    @Override
    public void initIalizeView() {
        ButterKnife.inject(this);
        if (!getIntent().getStringExtra("image").equals("")){
            Picasso.with(this).load(getIntent().getStringExtra("image")).into(photoview);
        }
    }

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.popuimage);
//        ButterKnife.inject(this);
//        if (!getIntent().getStringExtra("image").equals("")){
////            x.image().bind(photoview, getIntent().getStringExtra("image"));
//            Picasso.with(this).load(new File(getIntent().getStringExtra("image"))).into(photoview);
////            photoview.setImageBitmap(BitmapFactory.decodeFile(getIntent().getStringExtra("image")));
//    }
//}
}
